﻿using System.Drawing;
using System.Windows.Forms;
using Pibby.Core;

namespace Pibby.Controls
{
	public class IdentifiableImageList
	{
		private readonly ImageList _images = new ImageList();

		public ImageList Images
		{
			get { return this._images; }
		}

		public void Add (IIdentifiable ident, Image image)
		{
			this._images.Images.Add (ident.Id, image);
		}

		public void Remove(IIdentifiable ident)
		{
			this._images.Images.RemoveByKey(ident.Id);
		}

	}
}
